Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/add-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function initMap(): void {

// The map, centered at London
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
zoom: 13,
center: position,
});
Expand Down
1 change: 1 addition & 0 deletions samples/datasets-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function initMap(): void {
// [START woosmap_datasets_api_instantiate_map]

map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
gestureHandling: "auto",
defaultStyle: "streets",
});
Expand Down
1 change: 1 addition & 0 deletions samples/directions-advanced/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ function initUI(): void {

function initMap(): void {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: { lat: 51.5074, lng: -0.1478 },
zoom: 10,
});
Expand Down
1 change: 1 addition & 0 deletions samples/directions-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function initMap(): void {
const directionsService = new woosmap.map.DirectionsService();
const directionsRenderer = new woosmap.map.DirectionsRenderer({});
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
zoom: 7,
center: {
lat: 43.5,
Expand Down
1 change: 1 addition & 0 deletions samples/distance-isochrone/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 9,
center: centerLatLng,
},
Expand Down
1 change: 1 addition & 0 deletions samples/distance-matrix-advanced/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ function initUI(): void {

function initMap(): void {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: { lat: 51.4855, lng: -0.3179 },
zoom: 6,
});
Expand Down
1 change: 1 addition & 0 deletions samples/distance-matrix/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function calculateDistances(): void {

function initMap(): void {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: { lat: 45.53, lng: 2.4 },
zoom: 10,
});
Expand Down
1 change: 1 addition & 0 deletions samples/draw-shapes-events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 31.54350013250679, lng: -97.13238669872247 },
zoom: 6.5,
},
Expand Down
1 change: 1 addition & 0 deletions samples/draw-shapes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
gestureHandling: "greedy",
center: { lng: 3.878, lat: 43.611 },
zoom: 15,
Expand Down
1 change: 1 addition & 0 deletions samples/event-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function initMap() {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 13,
center: position,
},
Expand Down
1 change: 1 addition & 0 deletions samples/geolocation-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function renderUserLocationOnMap({ latitude, accuracy, longitude, viewport }) {
zoom = 11;
}
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: userPosition,
zoom,
});
Expand Down
1 change: 1 addition & 0 deletions samples/indoor-directions-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 43.6066, lng: 3.9218 },
zoom: 19.5,
},
Expand Down
1 change: 1 addition & 0 deletions samples/indoor-map-advanced/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 43.6066, lng: 3.9218 },
zoom: 19.5,
},
Expand Down
1 change: 1 addition & 0 deletions samples/indoor-map-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 43.6066, lng: 3.9218 },
zoom: 19.5,
},
Expand Down
2 changes: 1 addition & 1 deletion samples/indoor-navigation-widget/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function initMap(): void {
venue = "gdn_doc";
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{ center: { lat: 43.6066, lng: 3.9218 } },
{ visualRefresh: true, center: { lat: 43.6066, lng: 3.9218 } },
);

const conf: woosmap.map.IndoorRendererOptions = {
Expand Down
1 change: 1 addition & 0 deletions samples/indoor-widget-advanced/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function initMap(): void {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 43.6066, lng: 3.9218 },
zoom: 5,
},
Expand Down
2 changes: 1 addition & 1 deletion samples/indoor-widget-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function initMap(): void {
console.log("init map");
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{},
{ visualRefresh: true },
);

const conf: woosmap.map.IndoorRendererOptions = {
Expand Down
1 change: 1 addition & 0 deletions samples/infowindow-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 10,
center: {
lat: 51.57,
Expand Down
1 change: 1 addition & 0 deletions samples/localities-api-details-postalcodes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function init(): void {

function initMap(): void {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: {
lat: 48.8534,
lng: 2.3488,
Expand Down
1 change: 1 addition & 0 deletions samples/localities-api-details/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ let addressDetailsContainer: HTMLElement;

function initMap(): void {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: {
lat: 48.8534,
lng: 2.3488,
Expand Down
1 change: 1 addition & 0 deletions samples/localities-api-shape/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let hasShape = false;

function initMap(): void {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: {
lat: 48.8534,
lng: 2.3488,
Expand Down
1 change: 1 addition & 0 deletions samples/localities-autocomplete/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function initMap(): void {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 51.50940214, lng: -0.133012 },
zoom: 4,
},
Expand Down
1 change: 1 addition & 0 deletions samples/localities-geocode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 51.50940214, lng: -0.133012 },
zoom: 12,
},
Expand Down
1 change: 1 addition & 0 deletions samples/localities-nearby-poi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 40.71399, lng: -74.00499 },
zoom: 14,
styles: [
Expand Down
1 change: 1 addition & 0 deletions samples/map-clustering-geojson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function initMap(): void {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: {
lat: 55.5,
lng: -4,
Expand Down
1 change: 1 addition & 0 deletions samples/map-clustering-stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function initMap(): void {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 53.3485, lng: -6.257 },
zoom: 12,
styles: [
Expand Down
1 change: 1 addition & 0 deletions samples/map-events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: {
lat: 51.52,
lng: -0.13,
Expand Down
2 changes: 2 additions & 0 deletions samples/map-external-layer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 15.64,
center: centerLatLng,
mapTypeControl: true,
Expand Down Expand Up @@ -78,6 +79,7 @@ function applyStyle(name: string) {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: map.getZoom(),
center: map.getCenter(),
mapTypeControl: true,
Expand Down
1 change: 1 addition & 0 deletions samples/map-style-lightgrey/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 12,
center: position,
styles: [
Expand Down
1 change: 1 addition & 0 deletions samples/map-style-night/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 15,
center: position,
styles: [
Expand Down
1 change: 1 addition & 0 deletions samples/map-style-pois/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 16,
center: position,
styles: [
Expand Down
1 change: 1 addition & 0 deletions samples/map-style-retro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 14,
center: position,
styles: [
Expand Down
1 change: 1 addition & 0 deletions samples/map-type-hybrid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function initMap(): void {

// The map, initialized with hybrid satellite view
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
zoom: 16,
center: position,
mapTypeId: woosmap.map.MapTypeId.HYBRID,
Expand Down
1 change: 1 addition & 0 deletions samples/marker-click-event/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 0,
center: center,
},
Expand Down
1 change: 1 addition & 0 deletions samples/marker-html-css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 13,
center: center,
},
Expand Down
1 change: 1 addition & 0 deletions samples/marker-label/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 10,
center: center,
},
Expand Down
1 change: 1 addition & 0 deletions samples/marker-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function initMap(): void {
const map = new woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
zoom: 13,
center: center,
},
Expand Down
1 change: 1 addition & 0 deletions samples/multisearch-map-advanced/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function initMap(): void {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 51.50940214, lng: -0.133012 },
zoom: 4,
},
Expand Down
1 change: 1 addition & 0 deletions samples/multisearch-map-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function initMap(): void {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 51.50940214, lng: -0.133012 },
zoom: 4,
},
Expand Down
1 change: 1 addition & 0 deletions samples/react-map-basic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const WoosmapMap: React.FC<woosmap.map.MapOptions> = ({ center, zoom }) => {
useEffect(() => {
if (mapRef.current && !mapInstance) {
const map = new woosmap.map.Map(mapRef.current, {
visualRefresh: true,
zoom,
center,
});
Expand Down
1 change: 1 addition & 0 deletions samples/react-map-with-custom-overlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const WoosmapMap: React.FC<MapProps> = ({ center, zoom, children }) => {
useEffect(() => {
if (mapRef.current && !mapInstance) {
const map = new woosmap.map.Map(mapRef.current, {
visualRefresh: true,
zoom,
center,
});
Expand Down
1 change: 1 addition & 0 deletions samples/react-map-with-localities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const WoosmapMap: React.FC<MapProps> = ({ center, zoom, children }) => {
useEffect(() => {
if (mapRef.current && !mapInstance) {
const map = new woosmap.map.Map(mapRef.current, {
visualRefresh: true,
zoom,
center,
});
Expand Down
1 change: 1 addition & 0 deletions samples/render-shapes-circles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const data = {

function initMap() {
map = new woosmap.map.Map(document.getElementById("map") as HTMLElement, {
visualRefresh: true,
center: {
lat: 40,
lng: 0,
Expand Down
1 change: 1 addition & 0 deletions samples/render-shapes-data-events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 29.65, lng: -97.74 },
zoom: 6,
},
Expand Down
1 change: 1 addition & 0 deletions samples/render-shapes-data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 53.3430183, lng: -6.25321 },
zoom: 14,
},
Expand Down
1 change: 1 addition & 0 deletions samples/render-shapes-geojson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 53.51, lng: 8.15 },
zoom: 4,
},
Expand Down
1 change: 1 addition & 0 deletions samples/render-shapes-polygons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 29.65, lng: -97.74 },
zoom: 6,
},
Expand Down
1 change: 1 addition & 0 deletions samples/render-shapes-polylines/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function initMap() {
map = new window.woosmap.map.Map(
document.getElementById("map") as HTMLElement,
{
visualRefresh: true,
center: { lat: 51.505, lng: -0.118 },
zoom: 15,
},
Expand Down
Loading
Loading