0
votes
0answers
33 views

How to use different popup styles in the same leaflet web map for different dynamic map layers

I am very new to javascript, CSS and HTML. I have been playing around with leaflet and have been trying to figure out a way to customize popups for different features in my map. Is there a way to do ...
1
vote
1answer
154 views

Function to add layer with button click

I'm working with openlayers and geoserver to create a map and overlay layers. I need to add a layer when a button is clicked, but what I get is that the layer is added ( i can see it through the layer ...
0
votes
1answer
174 views

TitlePane not rendering - working with basemapGallery sample code 2

I'm having the exact same issue as this question: TitlePane not rendering - working with basemapGallery sample code but the solution doesn't work for me. my javascript: ...
0
votes
1answer
54 views

Placeholder Text in search box - Cartodb

I am trying to add placeholder text to the Cartodb searchbox using the following DOM code document.getElementsByClassName('text')[0].placeholder='Search Your Constituency'; It actually does not ...
1
vote
0answers
74 views

Change The OpenLayers 3 script into openlayers 2.13

Hi all I want to change the code from pgrouting latest workshop which is used the Openlayers 3 beta to Openlayers 2.13 The code is in here http://workshop.pgrouting.org/chapters/ol3_client.html I ...
0
votes
1answer
229 views

Mapbox markerLayer from GeoJSON with prompt as input not working

I am trying to display a pin on a map. It works fine if I code the GeoJSON data into the script of my file. If I try to insert the GeoJSON data via a user prompt, it doesn't work. The variable must be ...
1
vote
1answer
635 views

How to create working Hyperlinks in OnDemandGrid Cells

I'm creating a simple ArcGIS application that shows a table of data from a feature layer, one of which is a URL string. I'd like to make that string be a clickable hyperlink. Is this possible and if ...
0
votes
1answer
57 views

Global timer java script in KML

i have a timer script which shows the time of system in Description tag <script type='text/javascript'> setInterval('tick()',50); //tick is a plugin and 50 is in ms delay time function ...
2
votes
1answer
434 views

Search Functionality using Cartodb API

I posted a similar question about this a month or so ago and I was still in early stages of researching the problem thus not to many results came from it .After some time and effort I have come close ...
1
vote
1answer
2k views

How to zoom to specific Openlayers point feature on map?

I'm creating website for divers in my country and beside all standard contents and informations it also offers a map which shows some diving clubs, locations and similair. I also have table with ...
2
votes
1answer
118 views

Add button to map

I know this is a a stupid and direct question. How do I add a button to a normal map? Example: http://developers.arcgis.com/en/javascript/samples/map_simple/ I'm finding a way to make a button ...
1
vote
1answer
208 views

OpenLayer and not well formed Json

I am learning to use GeoExt and OpenLayers, and I want to reproduce one of the examples given at the geoExt website. The script call a GeoJSON containg the position of Alp summits. I downloaded it via ...
2
votes
1answer
428 views

call child div function from parent (not using window.opener)

This is a a Javascript/JQuery question that is directly related to the ArcGIS Javascript API... I have a map div created using a 'data' tag in HTML, which becomes visible on a button click. (I'll ...
1
vote
1answer
1k views

How do I create a basic image layer as a base layer in OpenLayers?

I'm trying to create a map using OpenLayers which uses a png image as a base layer but I'm having a bit of trouble. I'm not too familiar with OpenLayers as I have only come across it today and thought ...
1
vote
2answers
56 views

accesing openlayers.map in index.html

I am developing an app using opentripplanner. It creates an openlayer map in map.js. I want to access this map in index.html so i can set it's center. Kindly help me out.
0
votes
1answer
155 views

infotemplate getting cutoff on top or bottom of screen

in my app, i display few points across the map. these points have infotemplate with details in them and sometimes are quite large (around 350px height) if they have alot of information associated with ...
3
votes
1answer
441 views

How to embed ESRI maps on my website

I've got a website where I'd like to insert maps with some placemarks (restaurants, points of interest, ...). I'm tired of Google Maps and like to use ESRI basemaps. Is it possible to do this? I'd ...
2
votes
2answers
676 views

Convert dijit.TitlePane to dijit.form.ToggleButton

I have an app that I'm building using the javascript API and have created 3 titlepanes in the header that open up to reveal information (basemap gallery, legend, layers). It functions exactly how I ...
4
votes
2answers
15k views

How do you get the coordinates from a click or drag event in the Google Maps API V3?

I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the marker when it is dragged or clicked. Below is my code: <!DOCTYPE html> <html> <head> ...
1
vote
1answer
565 views

Unproject Radius with Openlayers with CRS:84 Projection

I have made a Openlayers integrated map that lets you draw a circle, On completion of the circle I have told the map to give me , Bounds, Center Long and Lats, and lastly the radius. My problem is ...
4
votes
1answer
2k views

How to display Radius after Resizing a Feature in Openlayers

@captDragon has helped me with calling the coordinates of a polygon after I have resized or dragged the feature. Ineed the radius now, i have done a radius alert on my other map,Which works correctly, ...
2
votes
3answers
2k views

Openlayers get coordinates from polygon

please could someone help me and bless me with an example of how to get coordinates from a polygon in OpenLayers?
13
votes
4answers
3k views

Which framework is best to implement an application robustly, using ArcGIS Server JS API?

Over on the Esri forum, user Matt Moyles suggested that the approach used in the Esri JS samples isn't suitable for robust development of a web mapping application using HTML, JavaScript and CSS: ...
1
vote
4answers
1k views

Map in an iFrame - open hyperlink from infoWindow in the calling page

I've got a Google Map being served inside an iFrame on a page (eg xxx.com/PageWithMap.html) The code for the Google map sits on another domain (eg yyy.com/MapCode.html) So it looks like this on ...
6
votes
1answer
380 views

Why do ArcGIS Desktop 10 HTML popups give JavaScript/HTML Error?

Using ArcMap 10 Desktop HTML Popups. The issue I am having is that the html < select > elements aren't working - you can select it and use the arrow keys to navigate through(up/down) the list but ...
1
vote
1answer
1k views

Invalid filter when using MapServer as a WFS

I'm trying to use Openlayers and Mapserver to display a shapefile. My HTML file is as follows: <html> <head> <title>OpenLayers Example</title> <script ...
2
votes
2answers
2k views

Querying MapServer using WFS functionality

I'm trying to display a shapefile using OpenLayers and Mapserver. Instead of overlaying it as a png, I want to return a vector, in this case a KML file. My HTML file (located in the same folder as ...
10
votes
3answers
327 views

What's a good library for displaying many small maps on a web page

I would like to create a visualization on the web similar to the following: http://namemapper.babynamewizard.com/namemapper/ Are there any good libraries for doing this? Is OpenLayers light-weight ...
18
votes
6answers
1k views

What embeddable web-based maps exist?

Some of the ones I'm familiar with (in no particular order): Google Maps (http://code.google.com/apis/maps/index.html) Bing Maps (http://www.microsoft.com/maps/developers/) Yahoo Maps ...